Npc = {
    {"id",		  1,	"int"},
    {"flag",      1,	"int"},
    {"mapID",	  1,	"int"},
    {"mapX",	  1,	"int"},
    {"mapY",	  1,	"int"},
}

TaskObj = {
    {"id",		  1,	"int"},
    {"cur",       1,	"int"},
    {"max",       1,	"int"},
    {"map",       1,	"int"},
    {"x",		  1,	"int"},
    {"y",         1,	"int"},
}

GuideNode = {
	{"id",    			1,	"int"},
	{"cmd",    			1,	"int"},
    {"args",   			10,	"string"},
    {"tip",				1,	"string"},
    {"nextGuide",		1,	"int"},
}

TaskNode = {
    {"taskID",          1, "int"},
    {"taskName",        1, "string"},
    {"taskPrefix",      1, "bit",     8},
    {"taskGroupID",     1, "int"},
    {"taskGroupName",   1, "string"},
    {"taskDesc1",       1, "string"},
    {"taskDesc2",       1, "string"},
    {"taskDesc3",       1, "string"},         
    {"beginTalk",       1,  "string"},
    {"endTalk",         1,  "string"},
    {"rewardExp",       1,  "int"},
    {"rewardMoney",     1,  "int"},
    {"rewardZhangong",    1,  "int"},
    {"rewardWushuang",  1,  "int"},
    {"rewardWeiwang",  1,  "int"},
    {"rewardRongyu",  1,  "int"},
    {"rewardFamilyContribution",	1,	"int"},
    {"rewardFamilyMoney",	1,	"int"},
    {"taskGuild1",		1,  "int"},
    {"taskGuild2",		1,  "int"},
    {"taskGuild3",		1,  "int"},
    {"taskGuild4",		1,  "int"},
    {"taskGuild5",		1,  "int"},
    {"movie1",			1,  "bit", 1},
    {"movie2",			1,  "bit", 1},
    {"movie3",			1,  "bit", 1},
    {"beginNPC",        2,  Npc},
    {"endNPC",          2,  Npc},
    {'taskObj',         10, TaskObj},
    {"listGuild1",		20,	GuideNode},
    {"listGuild2",		20,	GuideNode},
    {"listGuild3",		20,	GuideNode},
    {"listGuild4",		20,	GuideNode},
    {"listGuild5",		20,	GuideNode},
	{"rewardItems",     5, require("bag.Proto").ItemData},
	{"rewardItemsFinal",5, require("bag.Proto").ItemData},
    
    {"taskCanFinish",   1, "bit",1},
    {"taskLevel",       1, "bit",8},
    {"taskType1",       1, "bit",3},
    {'taskType2',		1, "bit",5},
    {"taskCurTimes",	1, "bit",8},        
    {"taskMaxTimes",	1, "bit",8},
    {"autoComplete",    1, "bit",1},
    {"taskColor",		1, "bit",3},
    {"taskCanFly",		1, "bit",1},
    {"taskChapterIcon",  1,  "bit", 8},
    {"taskChapterCur",   1,  "bit", 8},
    {"taskChapterTotal", 1,  "bit", 8},
    {"chapterReward",    2,  require("bag.Proto").ItemData},   
    {"totalDesc",        1,   "string"},
}

BountyNode = {
    {"taskID",          1, "int"},
    {"taskName",        1, "string"},
    {'taskObj',         10, TaskObj},
    {"color",			1, "int"},
    {"icon",			1, "string"},
    {"rewardExp",       1,  "int"},
    {"rewardMoney",     1,  "int"},
    {"rewardZhangong",    1,  "int"},
    {"rewardWushuang",  1,  "int"},
    {"rewardWeiwang",  1,  "int"},
    {"rewardRongyu",  1,  "int"},
    {"rewardItems",     10, require("bag.Proto").ItemData},    
}



GC_TASK_LIST = {
    {"doingTasks", 16,	 TaskNode},
    {"canDoTasks", 16,	 TaskNode},
    {"flag",	   1,	 "int"},
}

GC_TASK_ADD = {
    {"doingTasks", 16,   TaskNode},
    {"canDoTasks", 16,   TaskNode},
}

CG_TASK_ACCEPT = {
    {"taskID",     1,	"int"},
}

GC_TASK_ACCEPT = {
    {"taskID",     1,	"int"},
    {"retCode",    1,	"int"},
}

CG_TASK_FINISH = {
    {"taskID",     1,	"int"},
}

GC_TASK_FINISH = {
    {"taskID",     1,	"int"},
    {"retCode",    1,	"int"},
    {"delTask",    1,	"int"},
    {"canDoTasks", 16,   TaskNode},
}

CG_TASK_ABANDON = {
    {"taskID",     1,	"int"},
}

GC_TASK_ABANDON = {
    {"taskID",     1,	"int"},
    {"retCode",    1,	"int"},
}

GC_TASK_OBJ_NUM = {
    {"taskID",     1,	"int"},
    {"objTypeID",  1,	"int"},
    {"objNum",     1,	"int"},
}

CG_TASK_GET_PLACE = {
	{"taskID",     1,	"int"},
}

GC_TASK_CAN_FINISH_STATUS = {
    {"taskID",     1,	"int"},
    {"canFinish",  1,	"int"},
}

CG_GUIDE_PANEL_QUERY_LIST = {
	{"index",		1,	"int"},
}

GC_GUIDE_PANEL_QUERY_LIST = {
	{"index",		1,	"int"},
	{"list",		20,	GuideNode},
}

GuidePanelData = {
	{"index",    			1,	"int"},
	{"guideID",    			1,	"int"},
	{"isEvent",    			1,	"int"},
}
GC_GUIDE_PANEL_LIST = {		-- 界面指引
	{"data",		30,	GuidePanelData},
}

CG_GUIDE_PANEL_FINISH = {	-- 界面完成
	{"index",		1,	"int"},
}

CG_BOUNTY_LIST = {

}

BountyAcceptNode = {
  {"taskID",     1,	"int"},
	{"where",	1,	"string"},
}

GC_BOUNTY_LIST = {
    {"canDoTasks",	5,	BountyNode},
    {"refreshLeft",	1,	"int"},
    {"maxTimes",	1,	"int"},
    {"doTimes",		1,	"int"},
    {"freeTimes",	1,	"int"},
    {"refreshYuanbao", 1,  "int"},    
    {"doTasksDetail",	3,	BountyAcceptNode},
}

CG_BOUNTY_REFRESH = {}

CG_BOUNTY_AUTO_COMPLETE = {
	{"taskID",		1,	"int"},
}

CG_BOUNTY_ADD_CNT = {
}

GC_LV_UP_GUIDE = {
	{"guideID",		1, "int"},
	{"guideList",	20, GuideNode},
}

GC_TASK_MAIN_DUANCENG = {
	{"duanceng",	3, "string"},
}

CG_TASK_FLY = {
	{"mapId",	1,		"int"},
	{"mX",		1,		"int"},
	{"mY",		1,		"int"},	
}

GC_TASK_DAILY_STATUS = {
	{"cur",		1,		"int"},
	{"max",		1,		"int"},
}

CG_DAILY_AUTO_COMPLETE = {
	{"taskID",		1,	"int"},
}

GC_DAILY_AUTO_COMPLETE = {
	{"ret",		1,	"int"},
	{"msg",		1,	"string"},
}
CG_DAILY_ADD_CNT ={
}

-- 请求任务信息
CG_FAMILY_BOUNTY_LIST = {}

FamilyBountyNode = {
    {"taskID",          1, "int"},
    {"taskName",        1, "string"},
    {'taskObj',         10, TaskObj},
    {"color",			1, "int"},
    {"icon",			1, "string"},
    {"rewardExp",			1,  "int"},
    {"familyContribution",	1,  "int"},
    {"familyMoney",			1,  "int"},
    {"offerUuid",		1,	"string"},
    {"offerName",		1,	"string"},
    {"doCnt",		1,	"int"},
    {"maxCnt",		1,	"int"},
}

-- 任务列表
GC_FAMILY_BOUNTY_LIST = {
	{"list",			64,		FamilyBountyNode},
    {"nextTimeLeft",	1,	"int"},
    {"maxTimes",		1,	"int"},
    {"doTimes",			1,	"int"},
}

-- 个人发布任务信息
GC_FAMILY_BOUNTY_OFFER = {
	{"myBounty",	1,		TaskNode},
	{"icon",		1,		"int"},
    {"maxCnt",		1,		"int"},
    {"doCnt",		1,		"int"},	
    {"freeRefreshTime",	1,	"int"},
}

CG_FAMILY_BOUNTY_REFRESH = {}		-- 刷新任务

CG_FAMILY_BOUNTY_OFFER = {}			-- 发布任务

-- 接受任务
CG_FAMILY_BOUNTY_ACCEPT = {
	{"offerUuid",	1,	"string"},
}		

GC_FAMILY_BOUNTY_ACCEPT = {
	  {"offerUuid",	1,	"string"},
    {"nextTimeLeft",	1,	"int"},
    {"doTimes",			1,	"int"},	
}

--刷新日常任务池
WL_TASK_GROUP_POOL = {
    {"data",      1,   "string"}
}